

add_definitions(-DCE_GAME_EXPORT)

set (
    SOURCES_GENERAL
    )

set (
    HEADERS_GENERAL
    ceexport.h
    )

set (
    SOURCES_LOADER
	ced3d9textureloader.cpp
	ceeffectloader.cpp
    cegeometryloader.cpp
    )

set (
    HEADERS_LOADER
	ced3d9textureloader.h
	ceeffectloader.h
    cegeometryloader.h
    )
   
source_group (
    "General\\h"
    FILES
    ${HEADERS_GENERAL}
    )

source_group (
    "General\\c++"
    FILES
    ${SOURCES_GENERAL}
    )

source_group (
    "Loader\\c++"
    FILES
    ${SOURCES_LOADER}
    )

source_group (
    "Loader\\h"
    FILES
    ${HEADERS_LOADER}
    )

include_directories (
    ${DIRECTX9_INCLUDE_DIR}
    ${BULLET_INCLUDE_DIRS}
    )

add_library (
    cegame
    SHARED
    ${SOURCES_GENERAL}
    ${HEADERS_GENERAL}
    ${SOURCES_LOADER}
    ${HEADERS_LOADER}
    )

target_link_libraries (
    cegame
    cegfx
	cecore
	cexml
    ${DIRECTX9_LIBS}
    )
